@import './dropdown.less';
@import './panels.less';
@import './position.less';
@import './rtl.less';

@tabs-prefix-cls: rc-tabs;

@easing-in-out: cubic-bezier(0.35, 0, 0.25, 1);

@effect-duration: 0.3s;

.@{tabs-prefix-cls} {
  border: 1px solid gray;
  font-size: 14px;
  overflow: hidden;

  // ========================== Navigation ==========================
  &-nav {
    display: flex;
    flex: none;
    position: relative;

    &-measure,
    &-wrap {
      transform: translate(0);
      position: relative;
      display: inline-block;
      flex: auto;
      white-space: nowrap;
      overflow: hidden;
      display: flex;

      &-ping-left::before,
      &-ping-right::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
      }
      &-ping-left::before {
        left: 0;
        border-left: 1px solid red;
      }
      &-ping-right::after {
        right: 0;
        border-right: 1px solid red;
      }

      &-ping-top::before,
      &-ping-bottom::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
      }
      &-ping-top::before {
        top: 0;
        border-top: 1px solid red;
      }
      &-ping-bottom::after {
        bottom: 0;
        border-top: 1px solid red;
      }
    }

    &-list {
      display: flex;
      position: relative;
      transition: transform 0.3s;
    }

    // >>>>>>>> Operations
    &-operations {
      display: flex;

      &-hidden {
        position: absolute;
        visibility: hidden;
        pointer-events: none;
      }
    }

    &-more {
      border: 1px solid blue;
      background: rgba(255, 0, 0, 0.1);
    }
    &-add {
      border: 1px solid green;
      background: rgba(0, 255, 0, 0.1);
    }
  }

  &-tab {
    border: 0;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.5);
    margin: 0;
    display: flex;
    outline: none;
    cursor: pointer;
    position: relative;
    font-weight: lighter;
    align-items: center;

    &-btn,
    &-remove {
      border: 0;
      background: transparent;
    }

    &-btn {
      font-weight: inherit;
      line-height: 32px;
    }

    &-remove {
      &:hover {
        color: red;
      }
    }

    &-active {
      // padding-left: 30px;
      font-weight: bolder;
    }
  }

  &-ink-bar {
    position: absolute;
    background: red;
    pointer-events: none;

    &-animated {
      transition: all 0.3s;
    }
  }

  &-extra-content {
    flex: none;
  }
}
